package cn.school.educational.entity;


import cn.school.common.utils.SysUserUtils;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@TableName("t_teaching_material")
public class TeachingMaterial {

    @TableId
    private Long id;
    @ApiModelProperty(value = "教材编号")
    private String temaCode;
    @ApiModelProperty(value = "教材名称")
    private String temaName;
    @ApiModelProperty(value = "库存数量")
    private Integer temaStoreAmount;
    @ApiModelProperty(value = "教材有效状态：默认1有效")
    private Integer temaValid;
    
    @ApiModelProperty(value = "出版社名称")
    private String temaPressName;
    @ApiModelProperty(value = "教材类型")
    private String temaType;
    @ApiModelProperty(value = "主编")
    private String temaEditor;
    @ApiModelProperty(value = "书号")
    private String temaBookNumber;

    @ApiModelProperty(value = "适用科目ID")
    private Long subjId;
    @ApiModelProperty(value = "适用科目名称")
    private String subjName;
    @ApiModelProperty(value = "适用专业ID")
    private Long basuId;
    @ApiModelProperty(value = "适用专业名称")
    private String basuSubjectName;

    private Long createBy;
    private Date createTime;
    private Long modifyBy;
    private Date modifyTime;
    /**
     * 默认租户为当前登录人的租户
     */
    private String tenantId = SysUserUtils.getSysUser().getTenantId();

}
